﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceCS.DesignPattern.Core.BuilderPattern.MobilePackage
{
    public class MobileDirector
    {
        public MobilePackageModel createMobilePackage(IMobileBuilder mobileBuilder)
        {
            if (mobileBuilder != null)
            {
                mobileBuilder.buildMoney();
                mobileBuilder.buildShortInfo();
                mobileBuilder.buildMusic();
                return mobileBuilder.getMobilePackage();
            }
            return null;
        }
    }
}
